<!DOCTYPE HTML>
<html>
<head>
    <include file="Common:header_include"/>
    <title>医疗资讯列表</title>
    <style>
        #DataTables_Table_0_paginate{
            display: block;
        }
    </style>
</head>
<body>
<nav class="breadcrumb">
    <i class="Hui-iconfont">&#xe67f;</i> 首页 <span class="c-gray en">&gt;</span> 医疗资讯管理 <span class="c-gray en">&gt;</span> 医疗资讯信息列表
    <a class="btn btn-success radius r mr-20" style="line-height:1.6em;margin-top:3px" href="javascript:location.replace(location.href);" title="刷新">
        <i class="Hui-iconfont">&#xe68f;</i>
    </a>
</nav>
<div class="pd-20">
    <div class="cl pd-5 bg-1 bk-gray">
        <if condition="!I('get.del')">
            <span class="l">
                <a href="javascript:;" onclick="delectCheck('{:U('del')}',$('.item'))" class="btn btn-danger radius">
                    <i class="Hui-iconfont">&#xe6e2;</i> 批量删除
                </a>
                <a href="javascript:;" onclick="showIframe('添加医疗资讯','{:U('showAdd')}')" class="btn btn-primary radius">
                    <i class="Hui-iconfont">&#xe600;</i> 添加医疗资讯
                </a>
            </span>
            <else/>
            <a href="javascript:;" onclick="delectCheck('{:U('deleted')}',$('.item'))" class="btn btn-danger radius">
                <i class="Hui-iconfont">&#xe6e2;</i> 批量彻底删除
            </a>
        </if>
        <!--<span class="r">共有<strong>{:count($list)}</strong>条数据</span>-->
        <span class="r" style="margin-right: 10px">
            <if condition="!I('get.del')">
                <a href="javascript:;" onclick="showdeleted(true)" class="btn btn-danger radius">
                    <i class="Hui-iconfont">&#xe6e2;</i> 回收站
                </a>
                <else/>
                <a href="javascript:;" onclick="showdeleted(false)" class="btn btn-success radius">
                    <i class="Hui-iconfont">&#xe6d4;</i> 返回
                </a>
            </if>
        </span>
    </div>
    <div class="mt-20">
        <table class="table table-border table-bordered table-hover table-bg  <if condition="$list"> table-sort</if>">
        <thead>
        <tr class="text-c">
            <th width="25"><input type="checkbox"></th>
            <th width="30">ID</th>
            <th width="80">所属疾病</th>
            <th width="50">作者</th>
            <th width="100">标题</th>
            <th width="50">图片</th>
            <!--<th width="50">内容</th>-->
            <th width="50">点击量</th>
            <th width="50">收藏量</th>
            <th width="100">创建时间</th>
            <th width="100">修改时间</th>
            <th width="100">操作</th>
        </tr>
        </thead>
        <tbody>
        <if condition="empty($list)">
            <tr>
                <td colspan="9" class="text-c">暂无数据</td>
            </tr>
        </if>
        <volist name="list" id="data">
            <tr class="text-c">
                <td><input type="checkbox" value="{$data.id}" class="item"></td>
                <td>{$data.id}</td>
                <td>{$data['disease']['title']}</td>
                <td>{$data['doctor']['name']}</td>
                <td>{$data.title}</td>
                <td>
                    <if condition="$data['cover']">
                        <img src="__UPS__{$data.cover}" class="cover"/>
                        <else/>
                        <img src="__AIMG__no_cover.png" class="cover"/>
                    </if>
                </td>
                <!--<td>{:utf8_strcut($data['content'],0,100)}</td>-->
                <td>{$data.hits}</td>
                <td>{$data.collect}</td>
                <td>{:date('Y-m-d H:i:s',$data['create_time'])}</td>
                <td>{:date('Y-m-d H:i:s',$data['last_time'])}</td>
                <td class="td-manage">
                    <if condition="I('get.del')">
                        <a title="恢复" href="javascript:;" onclick="recover('{:U('recover',array('id'=>$data['id']))}',this)" class="ml-5" style="text-decoration:none">
                            <i class="Hui-iconfont">&#xe6e1;</i> 恢复
                        </a>
                        <a title="彻底删除" href="javascript:;" onclick="delectOne('{:U('deleted',array('id'=>$data['id']))}',this)" class="ml-5" style="text-decoration:none">
                            <i class="Hui-iconfont">&#xe6e2;</i>彻底删除
                        </a>
                        <else/>
                        <a title="编辑" href="javascript:;" onclick="showIframe('编辑','{:U('showEdit',array('id'=>$data['id']))}')" class="ml-5" style="text-decoration:none">
                            <i class="Hui-iconfont">&#xe6df;</i> 编辑
                        </a>
                        <a title="删除" href="javascript:;" onclick="delectOne('{:U('del',array('id'=>$data['id']))}',this)" class="ml-5" style="text-decoration:none">
                            <i class="Hui-iconfont">&#xe6e2;</i> 删除
                        </a>
                    </if>
                </td>
            </tr>
        </volist>
        </tbody>
        </table>
        <div class="page">{$page}</div>
    </div>
</div>
<include file="Common:footer_include"/>

</body>
</html>